.funs() {
@functions: ~`(function() {

  // 偏向右侧的长文字阴影
  this.makeLongRightShadow = function(length, saturate, alpha) {
    let str = '';
    let curSaturate = saturate;
    let saturateStep = 1 / length;
    let curAlpha = alpha;
    let alphaStep = (1 - 0.02) / length;
    for(let i = 1; i <= length; i += 1) {
      curSaturate = curSaturate > 0 ? curSaturate - saturateStep : 0;
      curAlpha = curAlpha > 0.02 ? curAlpha - alphaStep : 0.02;

      let color = 'hsla(14, 100%, ' + curSaturate + '%, ' + curAlpha + ')';
      str += (i + 'px ' + i + 'px 0 ' + color);
      if (i !== length) {
        str += ', '
      }
    }
    return str;
  }

})()`
}

.funs();

div {
  font-size: 20vmin;
  line-height: 45vh;
  text-align: center;
  color: hsl(14, 100%, 60%);

  text-shadow: ~`makeLongRightShadow(50, 30, 1)`;
}